const mongoose = require('mongoose');
//var connect=require('../mongodb')();

var Schema = mongoose.Schema;


var schema = new Schema({
    title:  String,
    dec:String,
    text:String,
    source:String,
    amount:{type:Number,default:1},
    time:String,
    img:String,
    state:String
});
var model=mongoose.model('newlist',schema);
module.exports=model;

